package com.springboot.chapter4.service.impl;

import com.springboot.chapter4.service.HelloService;

/**
 * 作者：paopao
 * 版本：1.0
 */
public class HelloServiceImpl implements HelloService {
    @Override
    public void sayHello(String name) {
        if(name == null || name.trim().isEmpty()){
            throw new IllegalArgumentException("name 不能为空");
        }
        System.out.println("hello " + name);
    }
}
